<template>
  <div>
    <Header></Header>
    <Banner></Banner>
    <div class="main">
      <div class="main-left">
        <li @click="$router.push('/wz')" v-if="this.author == 2">
          <i class="iconfont icon-all-wenzhang"></i>
          我的文章
        </li>
        <li @click="$router.push('/sc')">
          <i class="iconfont icon-all-xiangqu"></i>
          我的收藏
        </li>
        <li @click="$router.push('/wd')">
          <i class="iconfont icon-all-wendabangzhu"></i>
          我的问答
        </li>
        <li @click="$router.push('/pl')">
          <i class="iconfont icon-all-pinglun"></i>
          我的评论
        </li>
        <li @click="$router.push('/dy')">
          <i class="iconfont icon-all-yonghuming"></i>
          我的订阅
        </li>
        <li @click="$router.push('/ds')">
          <i class="iconfont icon-all-qian"></i>
          我的打赏
        </li>
        <li @click="$router.push('/tz')">
          <i class="iconfont icon-all-tongzhi"></i>
          通知中心
        </li>
        <li @click="$router.push('/ll')" class="active">
          <i class="iconfont icon-all-liulan"></i>
          浏览记录
        </li>
        <li @click="$router.push('/sz')">
          <i class="iconfont icon-all-icon_setting"></i>
          资料设置
        </li>
      </div>
      <div class="main-right">
        <div class="nav">
          <span v-bind:class="{ active1: isActive1}">浏览记录</span>
        </div>
        <div v-if="no" style="text-align: center; font-size:16px;padding-top:10px;">您还任何收藏</div>
        <div class="content" v-if="yes">
          <!-- <div class="search">
                  <i class="iconfont icon-all-sousuo1"></i>
                  <input type="text" placeholder="搜索您收藏的文章">
          </div>-->
          <div class="content-item">
            <span>在线职业资格认证培训MRD</span>
            <span>
              <i class="iconfont icon-all-tubiao-"></i>
              2018/12/20
              <!-- <i class="iconfont icon-all-shanchu" style="color:red; padding-left:10px" ></i> -->
            </span>
          </div>
          <div class="content-item">
            <span>在线职业资格认证培训MRD</span>
            <span>
              <i class="iconfont icon-all-tubiao-"></i>
              2018/12/20
              <!-- <i class="iconfont icon-all-shanchu" style="color:red; padding-left:10px" ></i> -->
            </span>
          </div>
        </div>
      </div>
    </div>
    <Footer></Footer>
  </div>
</template>

<script>
import Header from "@/common/Header/Header";
import Footer from "@/common/Footer/Footer";
import Banner from "@/common/Banner/Banner";
export default {
  name: "ll",
  data() {
    return {
      no: false,
      yes: true,
      isActive1: true,
      author:'',
    };
  },
  methods: {},
  mounted() {
    this.author =this.getCookie("identity_type") 
  },
  components: {
    Header,
    Banner,
    Footer
  }
};
</script>
<style lang="scss" scoped>
.main {
  width: 60%;
  height: auto;
  margin: 0 auto;
  margin-top: 30px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  .main-left {
    width: 230px;
    background-color: #fff;
    li {
      padding: 20px;
      list-style: none;
      border-left: 1px solid transparent;
      font-size: 18px;
      cursor: pointer;
    }
    .active {
      background-color: #f2f5fb;
      border-left: 1px solid #5079b7;
      color: #5079b7;
    }
  }
  .main-right {
    text-align: left;
    width: 900px;
    background-color: #fff;
    padding: 20px;
    margin-left: 30px;
    .nav {
      line-height: 1.8;
      border-bottom: 1px solid #5079b7;
      span {
        padding-bottom: 8px;
        display: inline-block;
        margin-right: 10px;
      }
      .active1 {
        color: #5079b7;
        border-bottom: 1px solid #5079b7;
      }
      .money {
        margin-left: 325px;
      }
    }
    .content {
      .search {
        padding-left: 5px;
        input {
          border: none;
          outline: none;
          line-height: 30px;
        }
        input::-webkit-input-placeholder {
          color: #666;
          font-size: 12px;
          // padding-left: 10px;
          // letter-spacing: 2px;
        }
        input:-moz-placeholder {
          color: #666;
          font-size: 12px;
          // padding-left: 10px;
          // letter-spacing: 2px;
        }
        input:-ms-input-placeholder {
          color: #666;
          font-size: 12px;
          // padding-left: 10px;
          // letter-spacing: 2px;
        }
      }
      .content-item {
        margin-top: 10px;
        padding-bottom: 10px;
        padding-left: 5px;
        padding-right: 5px;
        display: flex;
        justify-content: space-between;
        border-bottom: 1px solid #999;
        span {
          color: #a5aab0;
          font-size: 12px;
        }
      }
    }
  }
}
</style>


